package collections;

import java.util.*;

class Map_TreeMapTest {
    public static void main(String[] args) {
        Map<String, Object> hm = new HashMap<String, Object>();
        hm.put("one", "苹果");
        hm.put("two", "微软");
        hm.put("three", "谷歌");

        Iterator it = hm.entrySet().iterator();
        while (it.hasNext()) {
            Map.Entry me = (Map.Entry) it.next();
            System.out.println(me.getKey() + ":" + me.getValue());
        }

    }
}